{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 权限管理 <span class="c-gray en">&gt;</span> 角色列表 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="pd-20"> 
	<div class="cl pd-5 bg-1 bk-gray mt-20">
		<span class="l">
			<a href="javascript:;" onclick="datadel('{:url('Auth/role_del')}')" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>
			<a class="btn btn-primary radius" data-title="添加角色" _href="article-add.html" onclick="new_open('添加角色','{:url('role_add')}')" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添加角色</a>
		</span>
	<span class="r">共有数据：<strong id="count">{:count($list)}</strong> 条</span>
 </div>
	<div class="mt-20">
		<form action="" method="post" id='sort-form'>
			<table class="table table-border table-bordered table-bg table-hover table-sort">
				<thead>
					<tr class="text-c">
						<th width="25"><input type="checkbox" name="" value=""></th>
						<th width="50">ID</th>
						<th width="100">角色</th>
						<th width="200">用户列表</th>
						<th width="100">描述</th>
						<th width="50">状态</th>
						<th width="120">操作</th>
					</tr>
				</thead>
				<tbody>
					{foreach name="list" item="v"}
						<tr class="text-c" id="tr{$v.id}">
							<td><input type="checkbox" value="" name="del[]"></td>
							<td>{$v.id}</td>
							<td>{$v.title}</td>
							<td>{$v.users}</td>
							<td width="200">{$v.note}</td>
							<td>
								<img src="/static/admin/static/h-ui/images/validform/iconpic-right.png" style="cursor:pointer;" onclick="toggle_status(this,{$v.id},{$v.status},'auth_group','status')">
							</td>
							<td>
								<a style="text-decoration:none" class="btn btn-success ml-5" 
								onClick="new_open('角色编辑','{:url('role_add',array('id'=>$v['id']))}')" href="javascript:;" title="编辑"><i class="Hui-iconfont">&#xe6df;</i></a> 
								<a style="text-decoration:none" class="btn btn-danger ml-5" onClick="data_del(this,'{:url('role_del')}','{$v.id}')" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a>
							</td>
						</tr>
					{/foreach}
				</tbody>
			</table>
		</form>
	</div>
</div>
{include file="public/footer" /}
<script type="text/javascript">

</script> 
</body>
</html>